import ckyRequest from '../../index'

enum DashboardAPI {
  categoryGoodsCount = '/goods/category/count',
  categoryGoodsSale = 'goods/category/sale',
  categoryGoodsFavor = 'goods/category/favor',
  addressGoodsSale = 'goods/address/sale'
}

export function getCategoryGoodsCount() {
  return ckyRequest.get({ url: DashboardAPI.categoryGoodsCount })
}

export function getCategoryGoodsSale() {
  return ckyRequest.get({ url: DashboardAPI.categoryGoodsSale })
}

export function getCategoryGoodsFavor() {
  return ckyRequest.get({ url: DashboardAPI.categoryGoodsFavor })
}

export function getAddressGoodsSale() {
  return ckyRequest.get({ url: DashboardAPI.addressGoodsSale })
}
